﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rmac.DataBase.Entity
{
    /// <summary>
    /// 工单材料明细批次
    /// </summary>
    [SugarTable("MaterialIssueChildBatch")]
    public class MaterialIssueChildBatch
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 父表ID
        /// </summary>
        [SugarColumn(ColumnDescription = "父表ID")]
        public int? Pid { get; set; }
        /// <summary>
        /// 工序号
        /// </summary>
        [SugarColumn(ColumnDescription = "工序号")]
        public int? RountNo { get; set; }

        /// <summary>
        /// 材料编码
        /// </summary>
        [SugarColumn(ColumnDescription = "材料编码")]
        public string? InventoryID { get; set; }

        /// <summary>
        /// 材料名称
        /// </summary>
        [SugarColumn(ColumnDescription = "材料名称")]
        public string? InventoryDesc { get; set; }

        /// <summary>
        /// 计划量
        /// </summary>
        [SugarColumn(ColumnDescription = "计划量")]
        public double? PlanQty { get; set; }

        /// <summary>
        /// 实际量
        /// </summary>
        [SugarColumn(ColumnDescription = "实际量")]
        public double? ActQty { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        [SugarColumn(ColumnDescription = "批次")]
        public string? ProjectBatch { get; set; }
        
        /// <summary>
        /// 毛重
        /// </summary>
        [SugarColumn(ColumnDescription = "毛重")]
        public double? GrossWeight { get; set; }
        
        /// <summary>
        /// 皮重
        /// </summary>
        [SugarColumn(ColumnDescription = "皮重")]
        public double? Tare { get; set; }

        /// <summary>
        /// 是否方外料
        /// </summary>
        [SugarColumn(ColumnDescription = "是否方外料", DefaultValue = "1")]
        public BomInvInOrOut? IsBomOutInv { get; set; }

    }
}
